<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<h1>CRUD_DemoSHH_Wnma</h1>   
	<table style="margin: 0 auto">
		<td><a href="StaffAction_toEdit" >增加</a></td>
		<tr style="background-color: rad">
			<td>所属部门</td>
			<td>员工ID</td>
			<td>员工姓名</td>
			<td>员工编号</td>
			<td>员工邮箱</td>
			<td>入职日期</td>
			<td>员工电话</td>
			<td>员工性别</td>
			<td>员工状态</td>
			<td>操作</td>
		</tr>
		<c:forEach items="${staffList }" var="s">
		<tr>
			<td>${s.department.dname }</td>
			<td>${s.sid }</td>
			<td>${s.sname }</td>
			<td>${s.snumber }</td>
			<td>${s.semail }</td>
			<td>${s.sdate }</td>
			<td>${s.sphone }</td>
			<td>${s.ssex }</td>
			<td>${s.sstatus }</td>
			<td><a href="StaffAction_toEdit?sid=${s.sid }" >修改</a></td>
			<td><a href="StaffAction_delete?sid=${s.sid }" >删除</a></td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>